home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / ISSUE02 / CLINIC / NEWGRID.PAS < prev    next >
Encoding:
Pascal/Delphi Source File  |  1995-06-06  |  653 b   |  34 lines

  1. { !! IMPORTANT NOTE !!
  2.   When amending DBGRIDS.PAS as described in  Brian's article, you need to
  3.   also change line 454 (in TCustomDBGrid.Create) to
  4.     ScrollBars := ssBoth;
  5.   from
  6.     ScrollBars := ssHorizontal;
  7.   in order to ensure that when the descended TNewDBGrid is used it has
  8.   both vertical and horizontal scrollbars by default. }
  9.  
  10.  
  11. unit NewGrid;
  12.  
  13. interface
  14.  
  15. uses
  16.   Classes, Grids, StdCtrls, DBGrids;
  17.  
  18. type
  19.   TNewDBGrid = class(TDBGrid)
  20.   published
  21.     property ScrollBars;
  22.   end;
  23.  
  24. procedure Register;
  25.  
  26. implementation
  27.  
  28. procedure Register;
  29. begin
  30.   RegisterComponents('Data Controls', [TNewDBGrid]);
  31. end;
  32.  
  33. end.
  34.